<?php /* Smarty version Smarty-3.1.15, created on 2013-05-27 14:29:38
         compiled from ".\templates\purchaseReport.tpl" */ ?>
<?php /*%%SmartyHeaderCode:3091551a31d6773d3f7-15676255%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'effb8e3bd0178e892dea6c5a1da91c3130fa0332' => 
    array (
      0 => '.\\templates\\purchaseReport.tpl',
      1 => 1369645178,
      2 => 'file',
    ),
    '4e658668d18aae9f0dd5c2663220de40ba3d814b' => 
    array (
      0 => 'D:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\omdairy\\templates\\main.tpl',
      1 => 1368965122,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '3091551a31d6773d3f7-15676255',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.15',
  'unifunc' => 'content_51a31d67871b37_07313432',
  'variables' => 
  array (
    's_activId' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51a31d67871b37_07313432')) {function content_51a31d67871b37_07313432($_smarty_tpl) {?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<head>
<title>Dairy</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" type="image/x-icon" href="images/icon.png" />
<script type="text/javascript" src="./js/jquery.min.js"></script>
<link href="css/dropdown/dropdown.css" media="screen" rel="stylesheet" type="text/css" />
<link href="css/dropdown/themes/mtv.com/default.ultimate.css" media="screen" rel="stylesheet" type="text/css" />

<script type="text/javascript">
	$(function ()
	{
		$('input[type="text"]').live('blur',function()
		{
			applyToFixed($(this));
		});
	});
	
	function applyToFixed(obj)
	{
		var objValueToFixed = parseFloat($(obj).val());
		if(objValueToFixed > 0)
		{
			if($(obj).hasClass('threeToFixed'))
				$(obj).val(objValueToFixed.toFixed(3));
			else if($(obj).hasClass('twoToFixed'))
				$(obj).val(objValueToFixed.toFixed(2));
		}
	}
</script>
<style>
.textAlignRight
{
	text-align:right;
}
</style>

<script type="text/javascript">
  $(document).ready(function() {
    $('#licenseNo').focus();
  });
function myFunction()
{
  if(confirm("You Want To Remove This Record")== true)
	{
		return true;
	}
	else
	{
		return false;
	}
}
</script>

</head>
<body>
<?php if (strlen($_smarty_tpl->tpl_vars['s_activId']->value)>0) {?>
  <?php echo $_smarty_tpl->getSubTemplate ("./menu.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<?php }?>	
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<td class="content">

  <table cellpadding="0" cellspacing="0" border="1" align="center">
  		<tr>
  		  <td align="center" colspan="3"><b>Purchase List</b></td>
  		</tr>
  	  <tr>
  		  <th NOWRAP><b>&nbsp;</b></th>
  			<th><b>Party Name</b></th>
  			<th><b>purchaseDate</b></th>
  		</tr>
  	  <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['name'] = "sec";
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['purchseArray']->value) ? count($_loop) : max(0, (int) $_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total']);
?>
  	 <tr>
  	  <td align="center"><a href="purchseDetail.php?purchaseMasterId=<?php echo $_smarty_tpl->tpl_vars['purchseArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['purchaseMasterId'];?>
" class="link">Detail</a></td>
  	  <td align="left"><?php echo $_smarty_tpl->tpl_vars['purchseArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['partyName'];?>
</td>
  	  <td align="left"><?php echo $_smarty_tpl->tpl_vars['purchseArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['purchaseDate'];?>
 </td>
  	</tr>
  	<?php endfor; endif; ?>
  </table>
</body>

<tr>
  <td class="bluebg1">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><img src="images/corner3.gif" width="6" height="7" /></td>
      <td></td>
      <td align="right"><img src="images/corner4.gif" width="6" height="7" /></td>
    </tr>
  </table>
</td>
</tr>
</table>
</body>
</html><?php }} ?>
